/**
 * 设置界面
 */
const Set = () => import('../view/set/index.vue')
/**
 * 根界面
 */
const SetRoot = () => import('../view/set/root/index.vue')
/**
 * 登录界面
 */
const SetLogin = () => import('../view/set/login/index.vue')
/**
 * 第三方登录
 */
const SetOAuth = () => import('../view/set/OAuth/index.vue')
/**
 * 意见/建议
 */
const SetAdviceAdd = () => import('../view/set/advice/add.vue')
const SetAdviceList = () => import('../view/set/advice/list.vue')
const SetAdviceDetail = () => import('../view/set/advice/detail.vue')
const SetAdviceDustbin = () => import('../view/set/advice/dustbin.vue')
/**
 * 账号管理
 */
const SetAccountAdmin = () => import('../view/set/account/admin.vue')
/**
 * 关于我
 */
const SetAbout = () => import('../view/set/about/index.vue')
/**
 * 后台管理
 */
const SetAdmin = () => import('../view/set/admin/index.vue')
/**
 * Banner
 */
const SetAdminBanner = () => import('../view/set/admin/banner/index.vue')
const SetAdminBannerAdd = () => import('../view/set/admin/banner/add.vue')
const SetAdminBannerDustbin = () => import('../view/set/admin/banner/dustbin.vue')
/**
 * ECS
 */
const SetAdminEcs = () => import('../view/set/admin/ecs/index.vue')
/**
 * HomeLinks
 */
const SetAdminHomeLinks = () => import('../view/set/admin/home-links/index.vue')
const SetAdminHomeLinksAdd = () => import('../view/set/admin/home-links/add.vue')
const SetAdminHomeLinksDustbin = () => import('../view/set/admin/home-links/dustbin.vue')
/**
 * Me
 */
const SetAdminMe = () => import('../view/set/admin/me/index.vue')
/**
 * oss
 */
const SetAdminOss = () => import('../view/set/admin/oss/index.vue')
/**
 * 封装
 */
const SetAdminPackage = () => import('../view/set/admin/package/index.vue')
const SetAdminPackageList = () => import('../view/set/admin/package/list.vue')
const SetAdminPackageAdd = () => import('../view/set/admin/package/add.vue')
const SetAdminPackageDustbin = () => import('../view/set/admin/package/dustbin.vue')
/**
 * 作品
 */
const SetAdminProduction = () => import('../view/set/admin/production/index.vue')
const SetAdminProductionAdd = () => import('../view/set/admin/production/add.vue')
const SetAdminProductionList = () => import('../view/set/admin/production/list.vue')
const SetAdminProductionDustbin = () => import('../view/set/admin/production/dustbin.vue')
/**
 * 学习总结
 */
const SetAdminStudy = () => import('../view/set/admin/study/index.vue')
const SetAdminStudyList = () => import('../view/set/admin/study/list.vue')
const SetAdminStudyAdd = () => import('../view/set/admin/study/add.vue')
const SetAdminStudyDustbin = () => import('../view/set/admin/study/dustbin.vue')
/**
 * 学习时间线
 */
const SetAdminStudyLine = () => import('../view/set/admin/study-line/index.vue')
const SetAdminStudyLineAdd = () => import('../view/set/admin/study-line/add.vue')
const SetAdminStudyLineDustbin = () => import('../view/set/admin/study-line/dustbin.vue')
/**
 * 工作经历
 */
const SetAdminWorks = () => import('../view/set/admin/works/index.vue')
const SetAdminWorksAdd = () => import('../view/set/admin/works/add.vue')
const SetAdminWorksDustbin= () => import('../view/set/admin/works/dustbin.vue')

export default {
  path: '/set',
  name: 'Set',
  component: Set,
  redirect: '/set/root',
  children: [
    {
      path: 'root',
      name: 'SetRoot',
      meta: {tabBar: true, tabBarIndex: 4},
      component: SetRoot
    },
    {
      path: 'login',
      name: 'SetLogin',
      component: SetLogin
    },
    {
      path: 'OAuth',
      name: 'SetOAuth',
      component: SetOAuth
    },
    {
      path: 'advice-add',
      name: 'SetAdviceAdd',
      component: SetAdviceAdd
    },
    {
      path: 'advice-list',
      name: 'SetAdviceList',
      component: SetAdviceList
    },
    {
      path: 'advice-detail',
      props: true,
      meta: {auth: true},
      name: 'SetAdviceDetail',
      component: SetAdviceDetail
    },
    {
      path: 'advice-dustbin',
      props: true,
      meta: {auth: true},
      name: 'SetAdviceDustbin',
      component: SetAdviceDustbin
    },
    {
      path: 'account-admin',
      meta: {auth: true},
      name: 'SetAccountAdmin',
      component: SetAccountAdmin
    },
    {
      path: 'about',
      meta: {loadingClose: true },
      name: 'SetAbout',
      component: SetAbout
    },
    {
      path: 'admin',
      meta: {auth: true},
      name: 'SetAdmin',
      component: SetAdmin
    },
    {
      path: 'admin-banner-add',
      meta: {auth: true},
      name: 'SetAdminBannerAdd',
      component: SetAdminBannerAdd
    },
    {
      path: 'admin-banner-dustbin',
      meta: {auth: true},
      name: 'SetAdminBannerDustbin',
      component: SetAdminBannerDustbin
    },
    {
      path: 'admin-banner',
      meta: {auth: true},
      name: 'SetAdminBanner',
      component: SetAdminBanner
    },
    {
      path: 'admin-ecs',
      meta: {auth: true},
      name: 'SetAdminEcs',
      component: SetAdminEcs
    },
    {
      path: 'admin-home-links-add',
      meta: {auth: true},
      name: 'SetAdminHomeLinksAdd',
      component: SetAdminHomeLinksAdd
    },
    {
      path: 'admin-home-links',
      meta: {auth: true},
      name: 'SetAdminHomeLinks',
      component: SetAdminHomeLinks
    },
    {
      path: 'admin-home-links-dustbin',
      meta: {auth: true},
      name: 'SetAdminHomeLinksDustbin',
      component: SetAdminHomeLinksDustbin
    },
    {
      path: 'admin-me',
      meta: {auth: true},
      name: 'SetAdminMe',
      component: SetAdminMe
    },
    {
      path: 'admin-oss',
      meta: {auth: true},
      name: 'SetAdminOss',
      component: SetAdminOss
    },
    {
      path: 'admin-package',
      meta: {auth: true},
      name: 'SetAdminPackage',
      component: SetAdminPackage
    },
    {
      path: 'admin-package-list/:type',
      meta: {auth: true},
      name: 'SetAdminPackageList',
      component: SetAdminPackageList
    },
    {
      path: 'admin-package-add',
      meta: {auth: true},
      name: 'SetAdminPackageAdd',
      component: SetAdminPackageAdd
    },
    {
      path: 'admin-package-dustbin',
      meta: {auth: true},
      name: 'SetAdminPackageDustbin',
      component: SetAdminPackageDustbin
    },
    {
      path: 'admin-production',
      meta: {auth: true},
      name: 'SetAdminProduction',
      component: SetAdminProduction
    },
    {
      path: 'admin-production-list/:type',
      meta: {auth: true},
      name: 'SetAdminProductionList',
      component: SetAdminProductionList
    },
    {
      path: 'admin-production-add',
      meta: {auth: true},
      name: 'SetAdminProductionAdd',
      component: SetAdminProductionAdd
    },
    {
      path: 'admin-production-dustbin',
      meta: {auth: true},
      name: 'SetAdminProductionDustbin',
      component: SetAdminProductionDustbin
    },
    {
      path: 'admin-study',
      meta: {auth: true},
      name: 'SetAdminStudy',
      component: SetAdminStudy
    },
    {
      path: 'admin-study-list/:type',
      meta: {auth: true},
      name: 'SetAdminStudyList',
      component: SetAdminStudyList
    },
    {
      path: 'admin-study-add',
      meta: {auth: true},
      name: 'SetAdminStudyAdd',
      component: SetAdminStudyAdd
    },
    {
      path: 'admin-study-dustbin',
      meta: {auth: true},
      name: 'SetAdminStudyDustbin',
      component: SetAdminStudyDustbin
    },
    {
      path: 'admin-study-line',
      meta: {auth: true},
      name: 'SetAdminStudyLine',
      component: SetAdminStudyLine
    },
    {
      path: 'admin-study-line-dustbin',
      meta: {auth: true},
      name: 'SetAdminStudyLineDustbin',
      component: SetAdminStudyLineDustbin
    },
    {
      path: 'admin-study-line-add',
      meta: {auth: true},
      name: 'SetAdminStudyLineAdd',
      component: SetAdminStudyLineAdd
    },
    {
      path: 'admin-works',
      meta: {auth: true},
      name: 'SetAdminWorks',
      component: SetAdminWorks
    },
    {
      path: 'admin-works-add',
      meta: {auth: true},
      name: 'SetAdminWorksAdd',
      component: SetAdminWorksAdd
    },
    {
      path: 'admin-works-dustbin',
      meta: {auth: true},
      name: 'SetAdminWorksDustbin',
      component: SetAdminWorksDustbin
    }
  ]
}
